Skip to main content

BitBucket Pipelines

The steps below outline how to integrate your BitBucket Pipeline CI builds with BuildPulse to help you identify and eliminate flaky tests.

If you'd like help at any step, please get in touch at support@buildpulse.io

1. Log in to your BuildPulse account and select your repository to find your credentials

You'll find these credentials in your account:

BUILDPULSE_ACCESS_KEY_ID
AKIA3SYVRUSERHR2LCNK

BUILDPULSE_SECRET_ACCESS_KEY
********

You'll also need the BuildPulse account ID and repository ID for your repository:

account: 46661156
repository: 382123152

Add these to your Workspace variables.

2. Integrate the BuildPulse BitBucket Pipe into your build using the steps outlined in the README.

Note that test-reporter is run in an after-script - this is to ensure that results are sent if the tests fail.

after-script:
- pipe: docker://buildpulseapp/buildpulse-pipe
variables:
ACCOUNT: $BUILDPULSE_ACCOUNT_ID
REPOSITORY: $BUILDPULSE_REPOSITORY_ID
REPORT_PATHS: spec/reports
KEY: $BUILDPULSE_ACCESS_KEY_ID
SECRET: $BUILDPULSE_SECRET_ACCESS_KEY

3. Commit the changes to your BitBucket Pipeline workflow file.

Push your branch to BitBucket, and monitor build logs to see if the BuildPulse upload step is successful.

When everything is working correctly, you should see a successful step labeled "Upload test results to BuildPulse for flaky test detection." [example]

Within a few minutes, you'll see your first flaky test analysis in your dashboard. 😅